package cate.game.train.hero.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.interceptor.anno.ShutUpWorldTree;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

import java.util.Set;

@ClientMsg(title = "英雄放逐 の 请求")
@OperationSetter(GDOperation.HERO_SACRIFICE)
@ShutUpWorldTree
public class HeroSacrificeReq implements MsgInput {
    @NoteField(value = "好多个英雄uid")
    public Set<String> uids;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.hero.sacrifice(cc.getRole(), uids);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.HERO_SACRIFICE_REQ;
    }
}
